export const objHasOwn = (obj, property) => Object.hasOwn(obj, property)

export const objOmit = (obj, keys) => {
  if (!Array.isArray(keys)) keys = [keys]
  const clone_obj = { ...obj }
  keys.forEach(k => delete clone_obj[k])
  return clone_obj
}